(function($) {
    var $topBtn = $(".show #topBtn button");
    var index = {
        init: function() {
            this.bindEvent();
        },
        bindEvent: function() {
            var $self = this;
            $topBtn.on("click", function() {
                console.log('ee');
                $.ajax({
                    type: 'post',
                    url: '/operate/export',
                    data: {
                        user: document.cookie.split('=')[1]
                    },
                    success: function(req) {
                        alert("导出成功");
                    }
                });
            })
        }
    };
    index.init();
})(jQuery);